<!DOCTYPE html>
<span style="display:list-item;">
    <ruby style="display:block;">Text</ruby>
</span>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();
    document.designMode = 'on';
    document.execCommand("selectAll");
    document.execCommand("InsertHTML",false,"<p>crbug.com/598722: Test passes if it does not crash</p>");
</script>
